package com.codehacker.job.mallservice.dto;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * CommonDTO
 *
 * @author zhuyuwei
 * @date 26/07/2017
 */
public class CommonDTO<T> {

    private List<T> items;

    private PageDTO paginate;

    public CommonDTO() {
        paginate = new PageDTO();
        items = Lists.newArrayList();
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public PageDTO getPaginate() {
        return paginate;
    }

    public void setPaginate(PageDTO paginate) {
        this.paginate = paginate;
    }
}
